const serverMap = {
	dev: 'http://192.168.0.162',
	// dev: 'http://32z967y181.zicp.vip',
	test: 'https://yd.ymyimi.cn',
	pre: 'https://prerelease.ymyimi.cn',
	prod: 'https://zhyw.ymyimi.cn'
}
const rootMap1 = {
	http5: ':8053'
}
const rootMap2 = {
	http5: ':9053'
}
const rootsMap = {
	dev: rootMap1,
	test: rootMap2,
	pre: rootMap2,
	prod: rootMap2,
}

const env = {
	tag: '',
	server: '',
	rootMap: {},
	set(tag) {
		env.tag = tag;
		env.server = serverMap[tag];
		env.rootMap = rootsMap[tag];
		console.info('server: ' + env.server)
	}
}
env.set('prod');

module.exports = {
	env
}
